public class Bean {
    public Position pos;
    public Bean next;
    public Bean(Position pos) { this.pos = pos; }
}